package com.ruoyi.mop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品处方关联对象 mop
 *
 * @author ruoyi
 * @date 2024-03-08
 */
public class Mop extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 处方ID */
    @Excel(name = "处方ID")
    private Long prescriptionId;

    /** 药品ID */
    @Excel(name = "药品ID")
    private Long medicineId;

    /** 药品名字 */
    private String medicineName;

    /** 药品图片 */
    private String medicineImg;

    /** 药品单价 */
    @Excel(name = "药品单价")
    private Double price;

    /** 药品数量 */
    @Excel(name = "药品数量")
    private Integer number;

    /** 药品价钱总计 */
    private Double amount;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPrescriptionId(Long prescriptionId)
    {
        this.prescriptionId = prescriptionId;
    }

    public Long getPrescriptionId()
    {
        return prescriptionId;
    }
    public void setMedicineId(Long medicineId)
    {
        this.medicineId = medicineId;
    }

    public Long getMedicineId()
    {
        return medicineId;
    }
    public void setMedicineImg(String medicineImg)
    {
        this.medicineImg = medicineImg;
    }

    public String getMedicineImg()
    {
        return medicineImg;
    }
    public void setMedicineName(String medicineName)
    {
        this.medicineName = medicineName;
    }

    public String getMedicineName()
    {
        return medicineName;
    }

    public void setPrice(Double price)
    {
        this.price = price;
    }

    public Double getPrice()
    {
        return price;
    }
    public void setNumber(Integer number)
    {
        this.number = number;
    }

    public Integer getNumber()
    {
        return number;
    }
    public void setAmount(Double amount)
    {
        this.amount = amount;
    }

    public Double getAmount()
    {
        return amount;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("prescriptionId", getPrescriptionId())
            .append("medicineId", getMedicineId())
            .append("price", getPrice())
            .append("number", getNumber())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
